#define _CRT_SECURE_NO_WARNINGS 
#include<stdio.h>
int main()
{
	int arr[10] = { 4,7,1,2,9,8,6,3,10,5 };
	int tmp;
	for (int i = 0; i < 10 - 1; i++)
	{
		for (int q = 0; q < 10 - i - 1; q++)
		{
			if (arr[q] > arr[q + 1])
			{
				tmp = arr[q];
				arr[q] = arr[q + 1];
				arr[q + 1] = tmp;
			}
		}
	}
	for (int i = 0; i < 10; i++)
	{
		printf("%d ", arr[i]);
	}
	return 0;
}